package com.example.r2022913.model.entity.Administration;


import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 用户实体类
 */

@Data
@TableName(value = "sys_user")
public class UserEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Alias("用户名")
    private String username;


    private String password;


    @Alias("用户电话")
    private String phone;

    @Alias("用户头像地址")
    private String avatarUrl;

    private String openId;

    private Integer role;

//    private String skey;

//    private String sessionKey;

//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

 }
